import request from '@/utils/request'

/**
 * 支付单表分页查询
 * @param {查询条件} data
 */
export function listCorecmsbillpayments(query) {
  return request({
    url: 'order/Corecmsbillpayments/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增支付单表
 * @param data
 */
export function addCorecmsbillpayments(data) {
  return request({
    url: 'order/Corecmsbillpayments',
    method: 'post',
    data: data,
  })
}
/**
 * 修改支付单表
 * @param data
 */
export function updateCorecmsbillpayments(data) {
  return request({
    url: 'order/Corecmsbillpayments',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取支付单表详情
 * @param {Id}
 */
export function getCorecmsbillpayments(id) {
  return request({
    url: 'order/Corecmsbillpayments/' + id,
    method: 'get'
  })
}

/**
 * 删除支付单表
 * @param {主键} pid
 */
export function delCorecmsbillpayments(pid) {
  return request({
    url: 'order/Corecmsbillpayments/delete/' + pid,
    method: 'POST'
  })
}
